﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AusProject.OrderComponents
{
    public class ComponentColumnInfo
    {
        private int id;

        public int Id
        {
            get { return id; }
        }

        public string Title { get; set; }
        public bool ShowTitle { get; set; }
        public double WidthPercent { get; set; }

        public ComponentColumnInfo()
        {
            id = -1;
            Title = "";
            ShowTitle = false;
            WidthPercent = 1;
        }

        public ComponentColumnInfo(int id, string title, bool showTitle, double widthPercent)
        {
            this.id = id;
            Title = title;
            ShowTitle = showTitle;
            WidthPercent = widthPercent;
        }

        public ComponentColumnInfo(string title, bool showTitle, double widthPercent)
        {
            id = -1;
            Title = title;
            ShowTitle = showTitle;
            WidthPercent = widthPercent;
        }
    }
}
